//配置常量路由暴露出去
export const constantRoutes = [
  {
    //登录成功展示数据的路由
    path: '/',
    redirect: '/home',
  },
  {
    //首页
    path: '/home',
    component: () => import('@/views/home/index.vue'),
    name: 'home', //将来做菜单权限
  },
  {
    //登录路由
    path: '/login',
    component: () => import('@/views/login/index.vue'),
    name: 'login',
  },
  {
    //404
    path: '/404',
    component: () => import('@/views/404/index.vue'),
    name: '404',
  },
  {
    //任意路由
    path: '/:pathMatch(.*)*',
    redirect: '/404',
    name: 'any',
  },
]
